Filename: /text/sbasic/shared/03100000.xhp
(section: variablen)
The following statements and functions are for working with variables. You can use these functions to declare or define variables, convert variables from one type to another, or determine the variable type.
下記のステートメントおよび関数は、変数関係の処理を行うためのものです。これらの関数では、変数の宣言や、異なる変数型の間での値の変換、変数型の判定などを行えます。(par_id3147265.2)
(embed text/sbasic/shared/03100050.xhp#ccur : linkinfo)
Converts a string expression or numeric expression to a currency expression. The locale settings are used for decimal separators and currency symbols.
文字列式または数式を通貨式に変換します。小数点および通貨記号にはロケール設定が使用されます。(par_idN10545.)
(/embed text/sbasic/shared/03100050.xhp#ccur)
(embed text/sbasic/shared/03100100.xhp#cbool : linkinfo)
Converts a string comparison or numeric comparison to a Boolean expression, or converts a single numeric expression to a Boolean expression.
文字列や数値の比較演算結果、および単独の数値表式をブール型の表式に変換します。(par_id3145136.2)
(/embed text/sbasic/shared/03100100.xhp#cbool)
(embed text/sbasic/shared/03100300.xhp#cdate : linkinfo)
Converts any string or numeric expression to a date value.
文字列および数値表式を、日付データに変換します。(par_id3150986.2)
(/embed text/sbasic/shared/03100300.xhp#cdate)
(embed text/sbasic/shared/03100060.xhp#cdec : linkinfo)
Converts a string expression or numeric expression to a decimal expression.
文字列式または数式を 10 進数の式に変換します。(par_idN10558.)
(/embed text/sbasic/shared/03100060.xhp#cdec)
(embed text/sbasic/shared/03100400.xhp#cdbl : linkinfo)
Converts any numerical expression or string expression to a double type.
文字列および数値表式を、倍精度の数値データに変換します。(par_id3149233.2)
(/embed text/sbasic/shared/03100400.xhp#cdbl)
(embed text/sbasic/shared/03100500.xhp#cint : linkinfo)
Converts any string or numeric expression to an integer.
文字列および数値表式を、整数値に変換します。(par_id3155419.2)
(/embed text/sbasic/shared/03100500.xhp#cint)
(embed text/sbasic/shared/03100600.xhp#clng : linkinfo)
Converts any string or numeric expression to a long integer.
文字列および数値表式を、ロング整数の数値データに変換します。(par_id3148686.2)
(/embed text/sbasic/shared/03100600.xhp#clng)
(embed text/sbasic/shared/03100700.xhp#const : linkinfo)
Defines a string as a constant.
文字列を定数として定義します。(par_id3154143.2)
(/embed text/sbasic/shared/03100700.xhp#const)
(embed text/sbasic/shared/03100900.xhp#csng : linkinfo)
Converts any string or numeric expression to data type Single.
文字列および数値表式を、単精度の数値データに変換します。(par_id3149748.2)
(/embed text/sbasic/shared/03100900.xhp#csng)
(embed text/sbasic/shared/03101000.xhp#cstr : linkinfo)
Converts any numeric expression to a string expression.
数値表式を、文字列に変換します。(par_id3147574.2)
(/embed text/sbasic/shared/03101000.xhp#cstr)
(embed text/sbasic/shared/03100070.xhp#cvar : linkinfo)
Converts a string expression or numeric expression to a variant expression.
文字列式または数式をバリエーション式に変換します。(par_idN1055B.)
(/embed text/sbasic/shared/03100070.xhp#cvar)
(embed text/sbasic/shared/03100080.xhp#cverr : linkinfo)
Converts a string expression or numeric expression to a variant expression of the sub type "Error".
文字列式または数式をサブタイプ「Error」のバリエーション式に変換します。(par_idN1055B.)
(/embed text/sbasic/shared/03100080.xhp#cverr)
(embed text/sbasic/shared/03101100.xhp#defbool : linkinfo)
If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.
DefBool ステートメントでは、型宣言子やキーワードが指定されない場合にデフォルトの変数型を適用する、変数名の文字範囲を指定します。(par_id3153089.2)
(/embed text/sbasic/shared/03101100.xhp#defbool)
(embed text/sbasic/shared/03101110.xhp#defcur : linkinfo)
If no type-declaration character or keyword is specified, the DefCur statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefCur ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN1058D.)
(/embed text/sbasic/shared/03101110.xhp#defcur)
(embed text/sbasic/shared/03101300.xhp#defdate : linkinfo)
If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.
DefDate ステートメントでは、型宣言子やキーワードが指定されない場合にデフォルトの変数型を適用する、変数名の文字範囲を指定します。(par_id3145069.2)
(/embed text/sbasic/shared/03101300.xhp#defdate)
(embed text/sbasic/shared/03101400.xhp#defdbl : linkinfo)
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3153126.2)
(/embed text/sbasic/shared/03101400.xhp#defdbl)
(embed text/sbasic/shared/03101120.xhp#deferr : linkinfo)
If no type-declaration character or keyword is specified, the DefErr statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefErr ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN1058D.)
(/embed text/sbasic/shared/03101120.xhp#deferr)
(embed text/sbasic/shared/03101500.xhp#defint : linkinfo)
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3149762.2)
(/embed text/sbasic/shared/03101500.xhp#defint)
(embed text/sbasic/shared/03101600.xhp#deflng : linkinfo)
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3149514.2)
(/embed text/sbasic/shared/03101600.xhp#deflng)
(embed text/sbasic/shared/03101700.xhp#defobj : linkinfo)
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3147573.2)
(/embed text/sbasic/shared/03101700.xhp#defobj)
(embed text/sbasic/shared/03101130.xhp#defsng : linkinfo)
If no type-declaration character or keyword is specified, the DefSng statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefSng ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN10587.)
(/embed text/sbasic/shared/03101130.xhp#defsng)
(embed text/sbasic/shared/03101140.xhp#defstr : linkinfo)
If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefStr ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN10587.)
(/embed text/sbasic/shared/03101140.xhp#defstr)
(embed text/sbasic/shared/03102000.xhp#defvar : linkinfo)
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3153825.2)
(/embed text/sbasic/shared/03102000.xhp#defvar)
(embed text/sbasic/shared/03102100.xhp#dimtext : linkinfo)
Declares a variable or an array.
変数や配列を宣言します。(par_id3143271.2)
(/embed text/sbasic/shared/03102100.xhp#dimtext)
(embed text/sbasic/shared/03102101.xhp#redim : linkinfo)
Declares a variable or an array.
変数や配列を宣言します。(par_id3154685.2)
(/embed text/sbasic/shared/03102101.xhp#redim)
(embed text/sbasic/shared/03102200.xhp#isarray : linkinfo)
Determines if a variable is a data field in an array.
与えられた変数が、配列内のデータフィールドであるかを判定します。(par_id3159413.2)
(/embed text/sbasic/shared/03102200.xhp#isarray)
(embed text/sbasic/shared/03102300.xhp#isdate : linkinfo)
Tests if a numeric or string expression can be converted to a Date variable.
数値ないし文字列表式が 日付 変数に変換できるかを判定します。(par_id3153311.2)
(/embed text/sbasic/shared/03102300.xhp#isdate)
(embed text/sbasic/shared/03102400.xhp#isempty : linkinfo)
Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized.
バリアント型変数の値が、空 (Empty) であるかを判定します。値が空 (Empty) である変数は、初期化前であることを意味します。(par_id3163045.2)
(/embed text/sbasic/shared/03102400.xhp#isempty)
(embed text/sbasic/shared/03102450.xhp#iserror : linkinfo)
Tests if a variable contains an error value.
変数にエラー値が含まれているかどうかをテストします。(par_idN1055E.)
(/embed text/sbasic/shared/03102450.xhp#iserror)
(embed text/sbasic/shared/03102600.xhp#isnull : linkinfo)
Tests if a Variant contains the special Null value, indicating that the variable does not contain data.
バリアント型変数が、変数値にデータがないことを示す Null という特殊な値であるかを判定します。(par_id3146957.2)
(/embed text/sbasic/shared/03102600.xhp#isnull)
(embed text/sbasic/shared/03102700.xhp#isnumeric : linkinfo)
Tests if an expression is a number. If the expression is a number, the function returns True, otherwise the function returns False.
与えられた表式が数値であるかを判定します。この関数は、与えられた表式が数値である場合に True を返し、そうでない場合は False を返します。(par_id3149177.2)
(/embed text/sbasic/shared/03102700.xhp#isnumeric)
(embed text/sbasic/shared/03102800.xhp#isobject : linkinfo)
Tests if an object variable is an OLE object. The function returns True if the variable is an OLE object, otherwise it returns False.
オブジェクト変数が OLE オブジェクトであるかを判定します。 オブジェクト変数が OLE オブジェクトであるかを判定します。この関数は、与えられた変数が OLE オブジェクトである場合に True を返し、そうでない場合は False を返します。(par_id3148538.2)
(/embed text/sbasic/shared/03102800.xhp#isobject)
(embed text/sbasic/shared/03102900.xhp#lbound : linkinfo)
Returns the lower boundary of an array.
配列のインデックス範囲の下限値を返します。(par_id3147226.2)
(/embed text/sbasic/shared/03102900.xhp#lbound)
(embed text/sbasic/shared/03103000.xhp#ubound : linkinfo)
Returns the upper boundary of an array.
配列のインデックス範囲の最大値を返します。(par_id3147573.2)
(/embed text/sbasic/shared/03103000.xhp#ubound)
(embed text/sbasic/shared/03103100.xhp#let : linkinfo)
Assigns a value to a variable.
変数に値を代入します。(par_id3149233.2)
(/embed text/sbasic/shared/03103100.xhp#let)
(embed text/sbasic/shared/03104200.xhp#array : linkinfo)
Returns the type Variant with a data field.
指定データをバリアント型データの配列として返します。(par_id3155555.2)
(/embed text/sbasic/shared/03104200.xhp#array)
(embed text/sbasic/shared/03104300.xhp#dimarray : linkinfo)
Returns a Variant array.
バリアント型の配列を返します。(par_id3153527.2)
(/embed text/sbasic/shared/03104300.xhp#dimarray)
(embed text/sbasic/shared/03104700.xhp#erase : linkinfo)
Erases the contents of array elements of fixed size arrays, and releases the memory used by arrays of variable size.
固定サイズ配列の配列要素の内容を消去し、可変サイズ配列により使用されているメモリーを解放します。(par_idN10558.)
(/embed text/sbasic/shared/03104700.xhp#erase)
(embed text/sbasic/shared/03103200.xhp#optionbase : linkinfo)
Defines the default lower boundary for arrays as 0 or 1.
配列のインデックス範囲について、デフォルトで適用される下限値を 0 ないし 1 のいずれかに設定します。(par_id3147242.2)
(/embed text/sbasic/shared/03103200.xhp#optionbase)
(embed text/sbasic/shared/03103300.xhp#optionexplicit : linkinfo)
Specifies that every variable in the program code must be explicitly declared with the Dim statement.
プログラムコード中で使用するすべての変数を、Dim ステートメントを使って明示的に宣言する必要があるようにします。(par_id3148538.2)
(/embed text/sbasic/shared/03103300.xhp#optionexplicit)
(embed text/sbasic/shared/03103400.xhp#public : linkinfo)
Dimensions a variable or an array at the module level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules.
変数や配列を (有効範囲を関数やサブルーチン内に限定するのではなく) モジュールレベルで定義し、すべてのライブラリやモジュールを通じて利用できるようにします。(par_id3150669.2)
(/embed text/sbasic/shared/03103400.xhp#public)
(embed text/sbasic/shared/03103450.xhp#global : linkinfo)
Dimensions a variable or an array at the global level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules for the current session.
変数や配列を (1 つのサブルーチンや関数内部に限定するのではなく) 大域レベルで定義し、現在のセッションにおけるすべてのライブラリやモジュールで使用可能にします。(par_id3149177.2)
(/embed text/sbasic/shared/03103450.xhp#global)
(embed text/sbasic/shared/03103500.xhp#static : linkinfo)
Declares a variable or an array at the procedure level within a subroutine or a function, so that the values of the variable or the array are retained after exiting the subroutine or function. Dim statement conventions are also valid.
関数およびサブルーチン内で変数や配列を定義する際に、これらをプロシージャーレベルで再利用することを宣言して、該当する関数およびサブルーチンが終了しても、こうした変数や配列に代入した値を保持するようにします。ここでは Dim ステートメントと同様の規約が適用されます。(par_id3153311.2)
(/embed text/sbasic/shared/03103500.xhp#static)
(embed text/sbasic/shared/03103600.xhp#typename : linkinfo)
Returns a string (TypeName) or a numeric value (VarType) that contains information for a variable.
与えられた変数のデータ型を示す文字列 (TypeName) および数値 (VarType) を返します。(par_id3159157.2)
(/embed text/sbasic/shared/03103600.xhp#typename)
(embed text/sbasic/shared/03103700.xhp#set : linkinfo)
Sets an object reference on a variable or a Property.
変数や属性へのオブジェクト参照を設定します。(par_id3159149.2)
(/embed text/sbasic/shared/03103700.xhp#set)
(embed text/sbasic/shared/03103800.xhp#findobject : linkinfo)
Enables an object to be addressed at run-time as a string parameter through the object name.
文字列パラメータにオブジェクト名を指定することで、実行時に該当オブジェクトへアクセスします。(par_id3155341.2)
(/embed text/sbasic/shared/03103800.xhp#findobject)
(embed text/sbasic/shared/03103900.xhp#findpropertyobject : linkinfo)
Enables objects to be addressed at run-time as a string parameter using the object name.
文字列パラメータにオブジェクト名を指定することで、実行時に該当オブジェクトへアクセスします。(par_id3154285.2)
(/embed text/sbasic/shared/03103900.xhp#findpropertyobject)
(embed text/sbasic/shared/03104100.xhp#optional : linkinfo)
Allows you to define parameters that are passed to a function as optional.
オプションとして関数に渡すパラメータを指定します。(par_id3143267.2)
(/embed text/sbasic/shared/03104100.xhp#optional)
(embed text/sbasic/shared/03104000.xhp#ismissing : linkinfo)
Tests if a function is called with an optional parameter.
関数の呼び出し時にオプションパラメータが指定されているかをチェックします。(par_id3153825.2)
(/embed text/sbasic/shared/03104000.xhp#ismissing)
(embed text/sbasic/shared/03104400.xhp#hasunointerfaces : linkinfo)
Tests if a Basic Uno object supports certain Uno interfaces.
特定の Uno インタフェースを Basic Uno オブジェクトがサポートしているかを確認します。(par_id3151262.2)
(/embed text/sbasic/shared/03104400.xhp#hasunointerfaces)
(embed text/sbasic/shared/03104600.xhp#equalunoobjects : linkinfo)
Returns True if the two specified Basic Uno objects represent the same Uno object instance.
2 つの Basic Uno オブジェクトが同一の Uno オブジェクトインスタンスを示す場合、True を返します。(par_id3145090.2)
(/embed text/sbasic/shared/03104600.xhp#equalunoobjects)
(embed text/sbasic/shared/03104500.xhp#isunostruct : linkinfo)
Returns True if the given object is a Uno struct.
与えられたオブジェクトが Uno 構造型であれば True を返します。(par_id3146957.2)
(/embed text/sbasic/shared/03104500.xhp#isunostruct)